﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MyTestRunner.Tests.Domain.MsTestFinder
{
    [Microsoft.VisualStudio.TestTools.UnitTesting.TestClass]
    public class TestClassWithInitializeAndCleanupMethods
    {
        private string execution;

        public TestClassWithInitializeAndCleanupMethods()
        {
            this.execution = string.Empty;
        }

        [Microsoft.VisualStudio.TestTools.UnitTesting.TestInitialize]
        public void BeforeEachTest()
        {
            this.execution += "1";
        }

        public void TestMethod()
        {
            this.execution += "2";
        }

        [Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanup]
        public void AfterEachTest()
        {
            this.execution += "3";
        }

        public string ExecutionResult
        {
            get { return this.execution; }
        }
    }
}
